inherited FRelatorioConferenciaPedidoNF: TFRelatorioConferenciaPedidoNF
  Left = 233
  Top = 168
  Width = 1018
  Height = 585
  Caption = 'COMPRAS/PEDIDO DE COMPRA/RELAT'#211'RIO/CONFER'#202'NCIA PEDIDO X NF'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  inherited Panel1: TPanel
    Width = 1032
  end
  inherited Panel2: TPanel
    Width = 1032
  end
  inherited GroupBox1: TGroupBox
    object Label3: TLabel
      Left = 8
      Top = 24
      Width = 58
      Height = 16
      Caption = 'N'#186' Pedido'
    end
    object Label6: TLabel
      Left = 8
      Top = 152
      Width = 92
      Height = 16
      Caption = 'Fornecedor (F8)'
    end
    object Label4: TLabel
      Left = 80
      Top = 24
      Width = 17
      Height = 16
      Caption = 'NF'
    end
    object Label7: TLabel
      Left = 152
      Top = 24
      Width = 30
      Height = 16
      Caption = 'S'#233'rie'
    end
    object edPedido: TEdit
      Left = 8
      Top = 42
      Width = 70
      Height = 22
      TabOrder = 0
    end
    object GroupBox3: TGroupBox
      Left = 8
      Top = 72
      Width = 225
      Height = 65
      Caption = '  Data Pedido  '
      TabOrder = 2
      object Label5: TLabel
        Left = 108
        Top = 32
        Width = 7
        Height = 16
        Caption = 'a'
      end
      object edDataPedidoIni: TDateEdit
        Left = 9
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object edDataPedidoFim: TDateEdit
        Left = 126
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object dblFornecedor: TDBLookupComboBox
      Left = 8
      Top = 171
      Width = 465
      Height = 22
      KeyField = 'FORN_CODIGO'
      ListField = 'FORN_RAZAO'
      ListSource = dsFornecedor
      TabOrder = 3
      OnKeyDown = dblFornecedorKeyDown
    end
    object edNF: TEdit
      Left = 80
      Top = 42
      Width = 70
      Height = 22
      TabOrder = 1
    end
    object edSerie: TEdit
      Left = 152
      Top = 42
      Width = 70
      Height = 22
      TabOrder = 4
    end
    object GroupBox4: TGroupBox
      Left = 248
      Top = 72
      Width = 225
      Height = 65
      Caption = '  Data Confer'#234'ncia  '
      TabOrder = 5
      object Label8: TLabel
        Left = 108
        Top = 32
        Width = 7
        Height = 16
        Caption = 'a'
      end
      object edDataConferenciaIni: TDateEdit
        Left = 9
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object edDataConferenciaFim: TDateEdit
        Left = 126
        Top = 29
        Width = 90
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
  end
  inherited RLReport: TRLReport
    Left = -64
    Top = 133
    Width = 1056
    Height = 816
    DataSource = DSPesquisa
    PageSetup.PaperSize = fpLetter
    PageSetup.Orientation = poLandscape
    ExpressionParser = RLExpressionParser1
    inherited RLBand1: TRLBand
      Width = 980
      inherited RLMemo: TRLMemo
        Left = 704
        Width = 271
        Height = 14
      end
      inherited rlInfo: TRLSystemInfo
        Left = 891
      end
      inherited rlInfo1: TRLLabel
        Left = 704
      end
      inherited RLSystemInfo1: TRLSystemInfo
        Left = 1001
      end
    end
    object RLGroup1: TRLGroup
      Left = 38
      Top = 159
      Width = 980
      Height = 58
      DataFields = 'ITENS_PED_CODIGO'
      object RLBand3: TRLBand
        Left = 0
        Top = 16
        Width = 980
        Height = 18
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
        object RLDBText3: TRLDBText
          Left = 0
          Top = 1
          Width = 233
          Height = 16
          AutoSize = False
          DataField = 'FORN_RAZAO'
          DataSource = DSPesquisa
        end
        object RLDBText5: TRLDBText
          Left = 240
          Top = 1
          Width = 244
          Height = 16
          AutoSize = False
          DataField = 'ITENS_PED_PRODUTO_DESC'
          DataSource = DSPesquisa
        end
        object RLDBText8: TRLDBText
          Left = 488
          Top = 1
          Width = 46
          Height = 16
          AutoSize = False
          DataField = 'NF_NOTAFISCAL'
          DataSource = DSPesquisa
        end
        object RLDBText10: TRLDBText
          Left = 536
          Top = 1
          Width = 70
          Height = 16
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_DATAESTOQUE'
          DataSource = DSPesquisa
        end
        object RLDBText12: TRLDBText
          Left = 608
          Top = 1
          Width = 46
          Height = 16
          Alignment = taCenter
          AutoSize = False
          DataField = 'ITENS_NF_QUANTIDADE'
          DataSource = DSPesquisa
        end
        object RLDBText14: TRLDBText
          Left = 656
          Top = 1
          Width = 62
          Height = 16
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_NF_VALORUNITARIO'
          DataSource = DSPesquisa
        end
        object RLDBText16: TRLDBText
          Left = 721
          Top = 1
          Width = 70
          Height = 16
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_NF_VALORTOTAL'
          DataSource = DSPesquisa
        end
        object RLDBText18: TRLDBText
          Left = 793
          Top = 1
          Width = 65
          Height = 16
          AutoSize = False
          DataField = 'ITENS_PED_DATACONF'
          DataSource = DSPesquisa
        end
        object RLDBText19: TRLDBText
          Left = 861
          Top = 1
          Width = 184
          Height = 16
          AutoSize = False
          DataField = 'ITENS_PED_OBS2'
          DataSource = DSPesquisa
        end
      end
      object RLBand5: TRLBand
        Left = 0
        Top = 0
        Width = 980
        Height = 16
        BandType = btTitle
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -11
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
        object RLDBText2: TRLDBText
          Left = 0
          Top = 0
          Width = 233
          Height = 16
          AutoSize = False
          DataField = 'PED_FORNECEDOR_DESC'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 240
          Top = 0
          Width = 63
          Height = 14
          AutoSize = False
          DataField = 'ITENS_NF_PRODUTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText7: TRLDBText
          Left = 488
          Top = 0
          Width = 46
          Height = 16
          AutoSize = False
          DataField = 'PED_CODIGO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText9: TRLDBText
          Left = 536
          Top = 0
          Width = 70
          Height = 16
          Alignment = taCenter
          AutoSize = False
          DataField = 'PED_DATA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText11: TRLDBText
          Left = 608
          Top = 0
          Width = 46
          Height = 16
          Alignment = taCenter
          AutoSize = False
          DataField = 'ITENS_PED_QUANTIDADE'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText13: TRLDBText
          Left = 656
          Top = 0
          Width = 62
          Height = 16
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_PED_VALOR'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText15: TRLDBText
          Left = 721
          Top = 0
          Width = 70
          Height = 16
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'ITENS_PED_VALOR_TOTAL'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          BeforePrint = RLDBText15BeforePrint
        end
        object RLDBText17: TRLDBText
          Left = 793
          Top = 0
          Width = 65
          Height = 16
          AutoSize = False
          DataField = 'PED_FORNECEDOR_DESC'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          BeforePrint = RLDBText17BeforePrint
        end
        object RLDBText20: TRLDBText
          Left = 861
          Top = 0
          Width = 184
          Height = 16
          AutoSize = False
          DataField = 'ITENS_PED_OBS1'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText6: TRLDBText
          Left = 392
          Top = 0
          Width = 92
          Height = 16
          AutoSize = False
          DataField = 'PED_COMPRADOR'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBText21: TRLDBText
          Left = 312
          Top = 0
          Width = 73
          Height = 16
          AutoSize = False
          DataField = 'PROD_LOCALIZACAO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
      end
    end
    object RLBand2: TRLBand
      Left = 38
      Top = 120
      Width = 980
      Height = 39
      BandType = btHeader
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = False
      Borders.DrawRight = False
      Borders.DrawBottom = True
      object RLLabel1: TRLLabel
        Left = 0
        Top = 0
        Width = 104
        Height = 16
        Caption = 'Fornecedor - Ped'
      end
      object RLLabel2: TRLLabel
        Left = 0
        Top = 15
        Width = 98
        Height = 16
        Caption = 'Fornecedor - NF'
      end
      object RLLabel3: TRLLabel
        Left = 240
        Top = 0
        Width = 44
        Height = 16
        Caption = 'C'#243'digo'
      end
      object RLLabel4: TRLLabel
        Left = 240
        Top = 15
        Width = 62
        Height = 16
        Caption = 'Descri'#231#227'o'
      end
      object RLLabel5: TRLLabel
        Left = 392
        Top = 0
        Width = 67
        Height = 16
        Caption = 'Comprador'
      end
      object RLLabel6: TRLLabel
        Left = 488
        Top = 0
        Width = 44
        Height = 16
        AutoSize = False
        Caption = 'Pedido'
      end
      object RLLabel7: TRLLabel
        Left = 488
        Top = 15
        Width = 21
        Height = 16
        Caption = 'NF'
      end
      object RLLabel8: TRLLabel
        Left = 536
        Top = 15
        Width = 52
        Height = 16
        Caption = 'Data NF'
      end
      object RLLabel9: TRLLabel
        Left = 536
        Top = 0
        Width = 58
        Height = 16
        AutoSize = False
        Caption = 'Data Ped'
      end
      object RLLabel10: TRLLabel
        Left = 610
        Top = 0
        Width = 30
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'QTD'
      end
      object RLLabel11: TRLLabel
        Left = 666
        Top = 0
        Width = 52
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Vr. Unit'
      end
      object RLLabel12: TRLLabel
        Left = 721
        Top = 0
        Width = 70
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Vr. Total'
      end
      object RLLabel13: TRLLabel
        Left = 793
        Top = 0
        Width = 48
        Height = 16
        Caption = 'C/I/P'
        Font.Charset = ANSI_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Courier New'
        Font.Style = []
        ParentFont = False
      end
      object RLLabel16: TRLLabel
        Left = 793
        Top = 15
        Width = 65
        Height = 16
        Caption = 'Data Conf.'
      end
      object RLLabel15: TRLLabel
        Left = 861
        Top = 16
        Width = 39
        Height = 16
        Caption = 'Obs 2'
      end
      object RLLabel14: TRLLabel
        Left = 861
        Top = 0
        Width = 39
        Height = 16
        Caption = 'Obs 1'
      end
      object RLLabel19: TRLLabel
        Left = 312
        Top = 0
        Width = 73
        Height = 16
        Caption = 'Localiza'#231#227'o'
      end
    end
    object RLBand4: TRLBand
      Left = 38
      Top = 217
      Width = 980
      Height = 42
      BandType = btSummary
      BeforePrint = RLBand4BeforePrint
      object RLLabel17: TRLLabel
        Left = 773
        Top = 3
        Width = 76
        Height = 16
        Caption = 'Total Pedido'
      end
      object RLLabel18: TRLLabel
        Left = 749
        Top = 21
        Width = 102
        Height = 16
        Caption = 'Total Nota Fiscal'
      end
      object RLDBResult2: TRLDBResult
        Left = 854
        Top = 21
        Width = 123
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'ITENS_NF_VALORTOTAL'
        DataSource = DSPesquisa
        Info = riSum
        ResetAfterPrint = True
      end
      object RLLabel20: TRLLabel
        Left = 854
        Top = 3
        Width = 123
        Height = 16
        Alignment = taRightJustify
        AutoSize = False
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      'SELECT '
      '  PEDIDO.PED_FORNECEDOR_DESC,'
      '  FORNECEDOR.FORN_RAZAO,'
      '  PEDIDO.PED_CODIGO,'
      '  NOTAFISCAL.NF_CODIGO,'
      '  ITENSPEDIDO.ITENS_PED_CODIGO,'
      '  ITENSPEDIDO.ITENS_PED_PRODUTO,'
      
        '  (SELECT PROD_LOCALIZACAO FROM PRODUTO WHERE PROD_CODIGO = ITEN' +
        'SPEDIDO.ITENS_PED_PRODUTO) AS PROD_LOCALIZACAO,'
      '  ITENSPEDIDO.ITENS_PED_PRODUTO_DESC,'
      '  ITENSNOTAFISCAL.ITENS_NF_PRODUTO,'
      '  ITENSNOTAFISCAL.ITENS_NF_PROD_DESC,'
      '  ITENSPEDIDO.ITENS_PED_PRODUTO_DESC,'
      '  ITENSPEDIDO.ITENS_PED_DATAATEND,'
      '  ITENSPEDIDO.ITENS_PED_NFATEND,'
      '  ITENSPEDIDO.ITENS_PED_PRODUTO_DESC,'
      '  ITENSPEDIDO.ITENS_PED_DATAATEND,'
      '  ITENSPEDIDO.ITENS_PED_NFATEND,'
      '  ITENSPEDIDO.ITENS_PED_OBS1,'
      '  ITENSPEDIDO.ITENS_PED_OBS2,'
      '  ITENSPEDIDO.ITENS_PED_DATACONF,'
      '  PEDIDO.PED_COMPRADOR,'
      '  PEDIDO.PED_VALOR_PEDIDO,'
      '  PEDIDO.PED_DATA,'
      '  NOTAFISCAL.NF_DATAESTOQUE,'
      '  NOTAFISCAL.NF_VALORNF,'
      '  ITENSPEDIDO.ITENS_PED_QUANTIDADE,'
      '  ITENSNOTAFISCAL.ITENS_NF_QUANTIDADE,'
      '  ITENSPEDIDO.ITENS_PED_VALOR,'
      '  ITENSNOTAFISCAL.ITENS_NF_VALORUNITARIO,'
      '  ITENSPEDIDO.ITENS_PED_VALOR_TOTAL,'
      '  ITENSNOTAFISCAL.ITENS_NF_VALORTOTAL,'
      '  NOTAFISCAL.NF_NOTAFISCAL,'
      '  ITENS_PED_DATACONF,'
      '  itenspedido.ITENS_PED_OBS1,'
      '  itenspedido.ITENS_PED_OBS2,'
      '  ITENSPEDIDO.ITENS_PED_IGUALDADE,'
      '  ITENSPEDIDO.ITENS_PED_CONFERENCIA,'
      '  ITENSPEDIDO.ITENS_PED_PENDENCIA,'
      '  ITENSPEDIDO.ITENS_PED_DATACONF'
      'FROM'
      '  NOTAFISCAL'
      
        '  INNER JOIN PEDIDO ON (NOTAFISCAL.NF_PEDIDO = PEDIDO.PED_CODIGO' +
        ')'
      
        '  INNER JOIN ITENSPEDIDO ON (PEDIDO.PED_CODIGO = ITENSPEDIDO.ITE' +
        'NS_PED_PEDIDO)'
      
        '  INNER JOIN ITENSNOTAFISCAL ON (NOTAFISCAL.NF_CODIGO = ITENSNOT' +
        'AFISCAL.ITENS_NF_NOTAFISCAL)'
      
        '  INNER JOIN FORNECEDOR ON (NOTAFISCAL.NF_FORNECEDOR = FORNECEDO' +
        'R.FORN_CODIGO)')
    object QPesquisaPED_FORNECEDOR_DESC: TStringField
      FieldName = 'PED_FORNECEDOR_DESC'
      Size = 60
    end
    object QPesquisaFORN_RAZAO: TStringField
      FieldName = 'FORN_RAZAO'
      Size = 60
    end
    object QPesquisaPED_CODIGO: TIntegerField
      FieldName = 'PED_CODIGO'
    end
    object QPesquisaNF_CODIGO: TIntegerField
      FieldName = 'NF_CODIGO'
    end
    object QPesquisaITENS_PED_PRODUTO: TIntegerField
      FieldName = 'ITENS_PED_PRODUTO'
    end
    object QPesquisaITENS_PED_PRODUTO_DESC: TStringField
      FieldName = 'ITENS_PED_PRODUTO_DESC'
      Size = 60
    end
    object QPesquisaITENS_NF_PRODUTO: TIntegerField
      FieldName = 'ITENS_NF_PRODUTO'
    end
    object QPesquisaITENS_NF_PROD_DESC: TStringField
      FieldName = 'ITENS_NF_PROD_DESC'
      Size = 40
    end
    object QPesquisaPED_COMPRADOR: TStringField
      FieldName = 'PED_COMPRADOR'
    end
    object QPesquisaPED_DATA: TDateTimeField
      FieldName = 'PED_DATA'
      DisplayFormat = 'dd/mm/yyyy'
    end
    object QPesquisaNF_DATAESTOQUE: TDateTimeField
      FieldName = 'NF_DATAESTOQUE'
      DisplayFormat = 'dd/mm/yyyy'
    end
    object QPesquisaITENS_PED_QUANTIDADE: TFloatField
      FieldName = 'ITENS_PED_QUANTIDADE'
      DisplayFormat = '###0.000'
    end
    object QPesquisaITENS_NF_QUANTIDADE: TFloatField
      FieldName = 'ITENS_NF_QUANTIDADE'
      DisplayFormat = '###0.000'
    end
    object QPesquisaITENS_PED_VALOR: TFloatField
      FieldName = 'ITENS_PED_VALOR'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_NF_VALORUNITARIO: TFloatField
      FieldName = 'ITENS_NF_VALORUNITARIO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_PED_VALOR_TOTAL: TFloatField
      FieldName = 'ITENS_PED_VALOR_TOTAL'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaITENS_NF_VALORTOTAL: TFloatField
      FieldName = 'ITENS_NF_VALORTOTAL'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaNF_NOTAFISCAL: TStringField
      FieldName = 'NF_NOTAFISCAL'
      Size = 9
    end
    object QPesquisaITENS_PED_DATAATEND: TDateTimeField
      FieldName = 'ITENS_PED_DATAATEND'
      DisplayFormat = 'dd/mm/yyyy'
    end
    object QPesquisaITENS_PED_NFATEND: TIntegerField
      FieldName = 'ITENS_PED_NFATEND'
    end
    object QPesquisaITENS_PED_DATACONF: TDateTimeField
      FieldName = 'ITENS_PED_DATACONF'
      DisplayFormat = 'dd/mm/yyyy'
    end
    object QPesquisaITENS_PED_OBS1: TStringField
      FieldName = 'ITENS_PED_OBS1'
      Size = 40
    end
    object QPesquisaITENS_PED_OBS2: TStringField
      FieldName = 'ITENS_PED_OBS2'
      Size = 40
    end
    object QPesquisaITENS_PED_IGUALDADE: TStringField
      FieldName = 'ITENS_PED_IGUALDADE'
      FixedChar = True
      Size = 1
    end
    object QPesquisaITENS_PED_CONFERENCIA: TStringField
      FieldName = 'ITENS_PED_CONFERENCIA'
      FixedChar = True
      Size = 1
    end
    object QPesquisaITENS_PED_PENDENCIA: TStringField
      FieldName = 'ITENS_PED_PENDENCIA'
      FixedChar = True
      Size = 1
    end
    object QPesquisaITENS_PED_CODIGO: TIntegerField
      FieldName = 'ITENS_PED_CODIGO'
    end
    object QPesquisaPED_VALOR_PEDIDO: TFloatField
      FieldName = 'PED_VALOR_PEDIDO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaNF_VALORNF: TFloatField
      FieldName = 'NF_VALORNF'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaPROD_LOCALIZACAO: TStringField
      FieldName = 'PROD_LOCALIZACAO'
      Size = 6
    end
  end
  object dsFornecedor: TDataSource
    DataSet = DMGestao.QFornecedor
    Left = 128
    Top = 176
  end
  object RLExpressionParser1: TRLExpressionParser
    Left = 512
    Top = 8
  end
end
